package com.mobi.Survey.controller;

import java.util.List;

public class WebServiceIO {
	/**
	 * 
	 * @param surveyDetails
	 * @param surveyId
	 * @return true if result submitted successfully
	 */
	public static final boolean submitResult(
			List<SurveyDetailPojo> surveyDetails, long surveyId) {

		for (SurveyDetailPojo detail : surveyDetails) {

			System.out.println("Control Sequance No: " + detail.getSequanceNo()
					+ " For Survey Id: " + surveyId);
		}
		return true;

	}

	// Web service code segment to retrive aggregate result for surveyKey
	public static List<AggregateResultPojo> getAggregateResult(long surveyId,
			String sKey) {

		return null;
	}

	/**
	 * 
	 * Web service code to retrive survey for the surveyKey and return
	 * SurveyPojo
	 * 
	 * @param surveyKey
	 * @return SurveyPojo
	 */
	public static SurveyPojo getSurvey(String surveyKey) {

		return null;
	}
}
